package com.yc.myspringboot.ioc.ctr;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.yc.myspringboot.ioc.service.MyInterface1;

@RestController
@RequestMapping("/test1")
public class TestController1 {
	
	@Resource
	private MyInterface1 myInterface1;

	@ResponseBody
	@RequestMapping("/testInterface")
	public void testInterface() {
		myInterface1.m1();
		myInterface1.m2();
	}
}
